#!/bin/sh -xe
# $Id: after-changes.sh 704 2010-07-13 22:06:12Z ant_code $

# This is for devel use.
#  After changing stuff in files/installcd-initrd and files/host-initram
#  and then creating the initrams for testing.

. files/env
wd="`pwd`"

set -Ee

./bin/mk-dir-struct.sh 2>&1 | tee ./tmp/build.log
./bin/build-auxbuildroot cpfiles 2>&1 | tee ./tmp/build.log
./bin/build-auxbuildroot setperms 2>&1 | tee -a ./tmp/build.log

chroot $auxbuildroot_dir BIN/build-installcd tree 2>&1 | tee -a ./tmp/build.log
chroot $auxbuildroot_dir BIN/build-installcd setperms 2>&1 | tee -a ./tmp/build.log
./bin/build-installcd delstuff 2>&1 | tee -a ./tmp/build.log

chroot $auxbuildroot_dir BIN/build-initram  tree 2>&1 | tee -a ./tmp/build.log
chroot $auxbuildroot_dir BIN/build-initram  setperms 2>&1 | tee -a ./tmp/build.log

./bin/build-initram  delstuff 2>&1 | tee -a ./tmp/build.log
./bin/build-installcd isolinux 2>&1 | tee -a ./tmp/build.log
./bin/build-installcd mkinitram 2>&1 | tee -a ./tmp/build.log
./bin/build-initram mkinitrampkg 2>&1 | tee -a ./tmp/build.log
./bin/build-nemopkg 2>&1 | tee -a ./tmp/build.log
./bin/cp-pkgs-to-cdtree 2>&1 | tee -a ./tmp/build.log
./bin/make-iso 2>&1 | tee -a ./tmp/build.log
